package com.ams.entity;

import java.util.Date;

/**
 * @author liuxiaoding
 * @data 2019/7/5
 */
public class CpRecord {
    /**
     * id
     */
    private Integer id;

    /**
     * 得奖人id
     */
    private Integer pid;

    /**
     * child1
     */
    private Integer child1;

    /**
     * child2
     */
    private Integer child2;

    /**
     * from_id
     */
    private Integer fromId;

    /**
     * 层数
     */
    private Integer pnum;

    /**
     * 0注册 1升级
     */
    private Integer type;

    /**
     * createtime
     */
    private Date createtime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getChild1() {
        return child1;
    }

    public void setChild1(Integer child1) {
        this.child1 = child1;
    }

    public Integer getChild2() {
        return child2;
    }

    public void setChild2(Integer child2) {
        this.child2 = child2;
    }

    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }

    public Integer getPnum() {
        return pnum;
    }

    public void setPnum(Integer pnum) {
        this.pnum = pnum;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public CpRecord(Integer pid,Integer child1,Integer child2,Integer pnum,Integer type,Integer fromId){
       this.pid=pid;
       this.child1=child1;
       this.child2=child2;
       this.pnum=pnum;
       this.type=type;
       this.fromId=fromId;
    }
}
